|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.justhis.util.PropertiesReader
???????????? ????????????????????????????????????????????classpath??????????
| Constructor Summary | |
PropertiesReader(java.io.InputStream stream)
Creates a new PropertiesReader object. |
|
PropertiesReader(java.lang.String propertiesFile)
Creates a new PropertiesReader object. |
|
| Method Summary | |
protected void |
buildFromFile(java.lang.String file)
TODO |
protected void |
buildFromProperties(java.lang.String file)
TODO |
java.util.Enumeration |
getKeys()
TODO |
java.util.Properties |
getProperties()
Get properties |
static java.util.Properties |
getProperties(java.lang.String fileName)
get properties by construct a PropertiesReader |
java.lang.String |
getProperty(java.lang.String propertyName)
TODO |
java.util.Map |
getPropertyMap()
TODO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertiesReader(java.lang.String propertiesFile)
throws PropertiesFileReadException
propertiesFile - file name or path
PropertiesFileReadException - if any error occurs.
public PropertiesReader(java.io.InputStream stream)
throws PropertiesFileReadException
stream - a stream of input
PropertiesFileReadException - if any error occurs| Method Detail |
public java.util.Enumeration getKeys()
public java.util.Properties getProperties()
public static java.util.Properties getProperties(java.lang.String fileName)
throws PropertiesFileReadException
fileName - a properties name
PropertiesFileReadException - if any error occurs.public java.lang.String getProperty(java.lang.String propertyName)
propertyName - TODO
public java.util.Map getPropertyMap()
protected void buildFromFile(java.lang.String file)
throws PropertiesFileReadException
file - TODO
PropertiesFileReadException - TODO
protected void buildFromProperties(java.lang.String file)
throws PropertiesFileReadException
file - TODO
PropertiesFileReadException - TODO
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||